﻿using System;
using System.Collections.Generic;

namespace HandmadeShop.BusinessLogic.Entities
{
    public class Product : Base
    {
        public Guid Id { get; set; }
        public string Code { get; set; }
        public string Name { get; set; }
        public string Description { get; set; }
        public string Instruction { get; set; }
        public string Image1 { get; set; }
        public string Image2 { get; set; }
        public string Image3 { get; set; }
        public string Image4 { get; set; }
        public string Image5 { get; set; }

        public ProductType ProductType { get; set; }
        public ProductPrice ProductPrice { get; set; }
    }

    public class ProductType : Base
    {
        public Guid Id { get; set; }
        public string Code { get; set; }
        public string Name { get; set; }

        public IEnumerable<Product> Products { get; set; }
    }

    public class ProductPrice
    {
        public Guid Id { get; set; }
        public Guid ProductId { get; set; }
        public decimal Price { get; set; }

        public string CreatedBy { get; set; }
        public DateTime CreateDate { get; set; }
    }
}
